home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 14111 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  763 b 

  1. Path: clipper.ssb.com!usenet
  2. From: "Pramod K. Chandersekhar" <chandpk@itd.ssb.com>
  3. Newsgroups: comp.lang.c++
  4. Subject: strstream destruction
  5. Date: Thu, 28 Mar 1996 13:23:40 -0500
  6. Organization: State Street Bank
  7. Message-ID: <315AD92C.726D@itd.ssb.com>
  8. NNTP-Posting-Host: nancy.itd.ssb.com
  9. Mime-Version: 1.0
  10. Content-Type: text/plain; charset=us-ascii
  11. Content-Transfer-Encoding: 7bit
  12. X-Mailer: Mozilla 2.0 (X11; I; SunOS 5.4 sun4m)
  13.  
  14. hi,
  15.     i plan to use ostrstream to create some strings , i would
  16. like to pass the string created as a char * by calling ostrstream.str(). 
  17. how do i free the memory allocated can i just call delete on the char *
  18. returned by ostrstream.str().
  19.  
  20. thanks.
  21. pramod.
  22. -- 
  23.  
  24.  
  25.     The butler walked in , a solemn procession of one.
  26.                     -P.G.Wodehouse
  27.